def feb(n):
    if n==1:
        return 1
    if n==2:
        return 1
    else:
        tz=feb(n-2)+feb(n-1)
        return tz
temp=int(input(""))
if temp != 1:
    tzs2=feb(temp)
    tzs1=feb(temp-1)
    if tzs2!=-1:
        print('{} {:.3f}'.format(tzs2,tzs1/tzs2))
elif temp == 1:
    print('1 0.000')